<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<title>企业微信扫码登录</title>
<script src="<%=basePath%>js/wwLogin-1.0.0.js" type="text/javascript" charset="utf-8"></script>
	<style>
		#code{
			width: 500px;
			height: 500px;
			margin: 100px auto;

		}
	</style>
</head>
<body>
	<div id="code"></div>


	<script>
		window.WwLogin({
			"id" : "code", //显示二维码的容器id
			"appid" : "ww509ba472fb17d918",
			"agentid" : "1000048", //企业微信的cropID，在 企业微信管理端->我的企业 中查看
			"redirect_uri" : "http://hgbcbim.oicp.io/getCondition", //重定向地址，需要进行UrlEncode
			"state" : "3828293919281", //用于保持请求和回调的状态，授权请求后原样带回给企业。该参数可用于防止csrf攻击（跨站请求伪造攻击），建议企业带上该参数
			"href" : "", //自定义样式链接，企业可根据实际需求覆盖默认样式。详见文档底部FAQ

		});
	</script>

</body>
</html>
